Closed Form Solution of a Recurrence Relation